package com.molin.IOtest.objectStreamTest;

import java.io.Serializable;

public class User implements Serializable {
    private String username;
//    private transient String passwd;
    private String passwd;
    private static final long serialVersionUID = 1L;

    public User() {
    }

    public User(String username, String passwd) {
        this.username = username;
        this.passwd = passwd;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", passwd='" + passwd + '\'' +
                '}';
    }
}
